package com.ruoyi.web.core.send;

import com.github.misterchangray.core.annotation.MagicClass;
import com.github.misterchangray.core.annotation.MagicField;
import com.github.misterchangray.core.enums.ByteOrder;

@MagicClass(byteOrder = ByteOrder.LITTLE_ENDIAN)
public class DownloadFileSendMagicDto {

    @MagicField(order = 1, size = 12)
    private String m_ucFileNO; // 文件编号

    @MagicField(order = 2, size = 50)
    private String m_ucFileName; // 新软件名称

    @MagicField(order = 3, size = 4)
    private int m_uiFileSize;// 文件大小

    @MagicField(order = 4, size = 4)
    private short m_uiPackageSize; // 拆包大小

    @MagicField(order = 5, size = 4)
    private short m_uiPackageNum; // 拆包总数

    // @MagicField(order = 6)
    // private int m_uiFileCrc16; // 文件CRC校验

    public String getM_ucFileNO() {
        return m_ucFileNO;
    }

    public void setM_ucFileNO(String m_ucFileNO) {
        this.m_ucFileNO = m_ucFileNO;
    }

    public String getM_ucFileName() {
        return m_ucFileName;
    }

    public void setM_ucFileName(String m_ucFileName) {
        this.m_ucFileName = m_ucFileName;
    }

    public short getM_uiPackageSize() {
        return m_uiPackageSize;
    }

    public void setM_uiPackageSize(short m_uiPackageSize) {
        this.m_uiPackageSize = m_uiPackageSize;
    }


    public int getM_uiFileSize() {
        return m_uiFileSize;
    }

    public void setM_uiFileSize(int m_uiFileSize) {
        this.m_uiFileSize = m_uiFileSize;
    }

    public short getM_uiPackageNum() {
        return m_uiPackageNum;
    }

    public void setM_uiPackageNum(short m_uiPackageNum) {
        this.m_uiPackageNum = m_uiPackageNum;
    }

    // public int getM_uiFileCrc16() {
    //     return m_uiFileCrc16;
    // }

    // public void setM_uiFileCrc16(int m_uiFileCrc16) {
    //     this.m_uiFileCrc16 = m_uiFileCrc16;
    // }

}
